package cn.hwadee.muying.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import cn.hwadee.muying.commons.base.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 * 客户跟进记录
 * </p>
 *
 * @author Mankind
 * @since 2018-08-06
 */
@TableName("follow_log")
public class FollowLog extends BaseModel {

    private static final long serialVersionUID = 1L;

    /**
     * 所属机构id
     */
    @TableField("org_id")
        
    private Long orgId;
    /**
     * 接待记录id
     */
    @TableField("reception_id")
        
    private Long receptionId;
    /**
     * 跟进职员id
     */
    @TableField("follower_id")
        
    private Long followerId;
    /**
     * 与客户关系
     */
        
    private String relationship;
    /**
     * 沟通内容
     */
        
    private String content;
    /**
     * 跟进日期
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("follow_date")
    private Date followDate;

    //对应机构名称
    @TableField(exist=false)
    private String orgName;

    //对应客户姓名，跟进职员姓名
    @TableField(exist=false)
    private String followerName;

    @TableField(exist=false)
    private String clientName;

    public String getFollowerName() {
        return followerName;
    }

    public void setFollowerName(String followerName) {
        this.followerName = followerName;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public Long getReceptionId() {
        return receptionId;
    }

    public void setReceptionId(Long receptionId) {
        this.receptionId = receptionId;
    }

    public Long getFollowerId() {
        return followerId;
    }

    public void setFollowerId(Long followerId) {
        this.followerId = followerId;
    }

    public String getRelationship() {
        return relationship;
    }

    public void setRelationship(String relationship) {
        this.relationship = relationship;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getFollowDate() {
        return followDate;
    }

    public void setFollowDate(Date followDate) {
        this.followDate = followDate;
    }

    public static final String ORG_ID = "org_id";

    public static final String CLIENT_ID = "client_id";

    public static final String FOLLOWER_ID = "follower_id";

    public static final String RELATIONSHIP = "relationship";

    public static final String CONTENT = "content";

    public static final String FOLLOW_DATE = "follow_date";

    @Override
    public String toString() {
        return "FollowLog{" +
                ", orgId=" + orgId +
                ", followerId=" + followerId +
                ", relationship=" + relationship +
                ", content=" + content +
                ", followDate=" + followDate +
        "}";
    }
}
